/*
 * @Author: 清羽
 * @Date: 2022-08-23 19:07:23
 * @LastEditTime: 2022-10-05 14:28:49
 * @LastEditors: you name
 * @Description: 
 */
import request from '@/utils/request'

// 添加 店铺 分类列表
export function addBusinessCategory (data) {
	return request({
		url: "/business/category/add",
		method: "post",
		data
	})
}

// 获取 店铺 分类列表
export function getBusinessCateList () {
	return request({
		url: "/business/category/list",
		method: "get"
	})
}

// 删除 店铺 分类
export function delCategory (cateId) {
	console.log("delCategory => cateId", cateId)
	return request({
		url: "/business/category/del",
		method: "post",
		data: cateId
	})
}

// 设置是否主页展示分类
export function setShowCategory (categoryId) {
	return request({
		url: '/business/category/show',
		method: 'post',
		data: categoryId
	})
}